<%@ taglib uri="/WEB-INF/tld/tags.tld" prefix="t" %>
<t:box margin="25" borderWidth="2" title="Change password">
    <form name="changePassword" action="controller" method="post">
        <table>
            <tr style="color:#ff0000; visibility:<%=request.getAttribute("errorMessage") != null ? "visible": "hidden"%>">
                <td colspan=2><% out.print(request.getAttribute("errorMessage")); %></td>
            </tr>
            <tr>
                <td>Old password:</td>
                <td><input type="password" name="oldPassword" style="width: 150px"></td>
            </tr>
            <tr>
                <td>New password:</td>
                <td><input type="password" name="newPassword" style="width: 150px"></td>
            </tr>
            <tr>
                <td>Confirm new password:</td>
                <td><input type="password" name="confirmNewPassword" style="width: 150px"></td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center">
                    <input type="hidden" name="action" value="changePassword">
                    <input type="submit" value="Save" name="submit" class="commandButton">
                </td>
            </tr>
        </table>
    </form>
</t:box>